﻿namespace EDMDesigner.Designer.Controls.Mapping
{
    public class PropertyMappingColumnComboBox : ColumnComboBox
    {
        public PropertyMappingColumnComboBox()
        {
            Loaded += delegate { columnComboBox.SelectNullItemItemIfSelectedItemIsNull(); };
        }

        protected override void OnColumnComboBoxValueChanged(Business.SSDL.Property.Property column)
        {
            ((UIBusiness.MSL.PropertyMapping)DataContext).Column = column;
            Column = column;
        }
    }
}
